<?php if(!defined("PATH_HD"))exit;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link type="text/css" rel="stylesheet" href="http://localhost/traveles/admin/tpl/public/css/base.css"/>
        <link type="text/css" rel="stylesheet" href="http://localhost/traveles/admin/tpl/public/css/category.css"/>        
        <script type="text/javascript" src="<?php echo "http://localhost/traveles/admin/tpl/public/js/jquery-1.7.2.min.js";?>"></script>
        <script type="text/javascript" src="<?php echo "http://localhost/traveles/admin/tpl/public/js/bak.js";?>"></script>
        <link type="text/css" href="http://localhost/traveles/static/ui/css/flick/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
        <script type="text/javascript" src="http://localhost/traveles/static/ui/js/jquery-1.8.0.min.js"></script>
        <script type="text/javascript" src="http://localhost/traveles/static/ui/js/jquery-ui-1.8.23.custom.min.js"></script>
        <script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/traveles';
		HDPHP = 'http://localhost/traveles/hdphp';
		STATIC = 'http://localhost/traveles/static';
		DATA = 'http://localhost/traveles/data';
		WEB = 'http://localhost/traveles/admin.php';
		APP = 'http://localhost/traveles/admin.php';
		CONTROL = 'http://localhost/traveles/admin.php/module';
		METH = 'http://localhost/traveles/admin.php/module/index';
		URL = 'http://localhost/traveles/admin.php/module/index';
		ORG = 'http://localhost/traveles/hdphp/org';
		TPL = 'http://localhost/traveles/admin/tpl';
		PUBLIC = 'http://localhost/traveles/admin/tpl/public';
</script>
        <script type='text/javascript'>
            $(function(){
                $("#tabs").tabs({selected:0});
            })
        </script>
    </head>
    <body>
        <!--现在的位置-->
        <div class="position">
            <span class="word">您现在的位置： ->  </span>
            <a href="http://localhost/traveles/admin.php/module/index" class="new_pos">备份数据</a> 
        </div>
        <!--正文内容-->
        <div id="tabs"> 
        <!--列表-->                    
            <ul>
                <li><a href="#tabs-0">备份数据</a></li>
            </ul>
            <!--第一个列表内容-->
            <div id="tabs-0">   
                <table class="table1">
                    <tr>
                        <th style="width:30px;text-align:center;">选择</th> 
                        <th style="width:200px;text-align:center;">表名</th> 
                        <th style="width:200px;text-align:center;">表类型</th> 
                        <th style="width:200px;text-align:center;">编码方式</th> 
                        <th style="width:100px;text-align:center;">记录数</th> 
                        <th style="width:100px;text-align:center;">大小</th> 
                    </tr>
                <form  method="post" action="http://localhost/traveles/admin.php/module/startbak" class="forms">
                <?php $hd["list"]["v"]["total"]=0;
if(!empty($dbinfo)):
$hd_list_total = count($dbinfo);
$hd_list_row = min(floor($hd_list_total/1),20);
$hd["list"]["hd_list_total"]=$hd_list_total;
$hd_list_id=0;
for($i=0;$i<$hd_list_total;$i+=1):
$hd["list"]["v"]["first"]=$hd_list_id==0?true:false;
$hd["list"]["v"]["last"]=$hd_list_id>=$hd_list_row-1?true:false;
$hd["list"]["v"]["index"]=$hd_list_id+1;
$v=current($dbinfo);next($dbinfo);?>
                    
                    <tr>
                        <td style="text-align:center">
                            <input type="checkbox" name="table[]" value="<?php echo $v["tablename"];?>" checked="checked">
                        </td>
                        <td style="text-align:center;"><?php echo $v['tablename'];?></td>
                        <td style="text-align:center;"><?php echo $v['engine'];?></td>
                        <td style="text-align:center;"><?php echo $v['collation'];?></td>
                        <td style="text-align:center;"><?php echo $v['rows'];?>条</td>
                        <td style="text-align:center;"><?php echo get_size($v['size']);?></td>
                    </tr>
                <?php if($hd_list_id>=$hd_list_row-1)break;
$hd_list_id++;
endfor;
$hd["list"]["v"]["total"]=$hd_list_id+1;
endif;
?>
                </form>
                </table>
                <div class="button1">
                    <a href="javascript:void(0);" class="bak" style="color:white;text-decoration:none;">开始备份</a>
                </div>
            </div>
        </body>
    </html>